{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/fcoell/Dropbox/PATSTAT/DATA/../logs/Appendix_Fig8.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}22 Jun 2020, 10:55:47
{txt}
{com}. di "******* Robustness_patent_weights_Appendix_Fig8 *******"
{res}******* Robustness_patent_weights_Appendix_Fig8 *******
{txt}
{com}. corr w wtrade if anypatent>0
{txt}(obs=12,187)

             {c |}        w   wtrade
{hline 13}{c +}{hline 18}
           w {c |}{res}   1.0000
      {txt}wtrade {c |}{res}   0.7256   1.0000

{txt}
{com}. lpoly w wtrade if anypatent>0, noscatter ci scheme(lean1) legend(off) title("") 
{res}{txt}
{com}. graph export "../graph/patents_trade_weights_corr_Patstat.eps", as(eps) preview(on) replace
{txt}(file ../graph/patents_trade_weights_corr_Patstat.eps written in EPS format)

{com}. graph save "../graph/patents_trade_weights_corr_Patstat.gph", replace
{res}{txt}(file ../graph/patents_trade_weights_corr_Patstat.gph saved)

{com}. reg w wtrade if anypatent>0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}    12,187
{txt}{hline 13}{c +}{hline 34}   F(1, 12185)     = {res} 13549.35
{txt}       Model {c |} {res} 625.371743         1  625.371743   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 562.400153    12,185  .046155121   {txt}R-squared       ={res}    0.5265
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.5265
{txt}       Total {c |} {res}  1187.7719    12,186  .097470203   {txt}Root MSE        =   {res} .21484

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}           w{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}wtrade {c |}{col 14}{res}{space 2} .8855824{col 26}{space 2}  .007608{col 37}{space 1}  116.40{col 46}{space 3}0.000{col 54}{space 4} .8706695{col 67}{space 3} .9004952
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .0493845{col 26}{space 2} .0021053{col 37}{space 1}   23.46{col 46}{space 3}0.000{col 54}{space 4} .0452579{col 67}{space 3} .0535112
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/fcoell/Dropbox/PATSTAT/DATA/../logs/Appendix_Fig8.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}22 Jun 2020, 10:55:51
{txt}{.-}
{smcl}
{txt}{sf}{ul off}